import React, { FC } from 'react';
import { Modal } from 'antd';
import { Scheduling } from '../../../Components/Scheduling'
import { Plane } from '../../../types/plane.type';
type Props = {
    show: boolean;
    onOk: () => void;
    onCancel: () => void;
    selectedPlane?: Plane;
}

export const PlaneSchedulingModal: FC<Props> = ({ selectedPlane, show, onOk, onCancel }) => {
    const handleOk = () => {
        onOk();
    }
    return <Modal
        title="Plane Scheduling"
        open={show}
        onOk={handleOk}
        onCancel={onCancel}
        width={1200}
    >
        <div>
            <Scheduling selectedPlane={selectedPlane} />
        </div>
    </Modal>
}